import request from "../libs/request";

export default function api(url='', data={}){
    if(!url) throw new Error("请求接口URL不能为空");
    return request.post(
        url,  //url
        data  //data参数
    )
}